package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CaseOverseasInputMapper;
import com.ruoyi.system.domain.CaseOverseasInput;
import com.ruoyi.system.service.ICaseOverseasInputService;
import com.ruoyi.common.core.text.Convert;

/**
 * 病例境外输入信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-03
 */
@Service
public class CaseOverseasInputServiceImpl implements ICaseOverseasInputService 
{
    @Autowired
    private CaseOverseasInputMapper caseOverseasInputMapper;

    /**
     * 查询病例境外输入信息
     * 
     * @param id 病例境外输入信息主键
     * @return 病例境外输入信息
     */
    @Override
    public CaseOverseasInput selectCaseOverseasInputById(Long id)
    {
        return caseOverseasInputMapper.selectCaseOverseasInputById(id);
    }

    /**
     * 查询病例境外输入信息列表
     * 
     * @param caseOverseasInput 病例境外输入信息
     * @return 病例境外输入信息
     */
    @Override
    public List<CaseOverseasInput> selectCaseOverseasInputList(CaseOverseasInput caseOverseasInput)
    {
        return caseOverseasInputMapper.selectCaseOverseasInputList(caseOverseasInput);
    }

    /**
     * 新增病例境外输入信息
     * 
     * @param caseOverseasInput 病例境外输入信息
     * @return 结果
     */
    @Override
    public int insertCaseOverseasInput(CaseOverseasInput caseOverseasInput)
    {
        return caseOverseasInputMapper.insertCaseOverseasInput(caseOverseasInput);
    }

    /**
     * 修改病例境外输入信息
     * 
     * @param caseOverseasInput 病例境外输入信息
     * @return 结果
     */
    @Override
    public int updateCaseOverseasInput(CaseOverseasInput caseOverseasInput)
    {
        return caseOverseasInputMapper.updateCaseOverseasInput(caseOverseasInput);
    }

    /**
     * 批量删除病例境外输入信息
     * 
     * @param ids 需要删除的病例境外输入信息主键
     * @return 结果
     */
    @Override
    public int deleteCaseOverseasInputByIds(String ids)
    {
        return caseOverseasInputMapper.deleteCaseOverseasInputByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除病例境外输入信息信息
     * 
     * @param id 病例境外输入信息主键
     * @return 结果
     */
    @Override
    public int deleteCaseOverseasInputById(Long id)
    {
        return caseOverseasInputMapper.deleteCaseOverseasInputById(id);
    }
}
